package com.siyu.tickets.manager;

import java.util.Date;

import com.siyu.common.hibernate3.Updater;
import com.siyu.common.page.Pagination;
import com.siyu.tickets.entity.Product;

public interface ProductMng {

	public Pagination getPage(String name, Date beginTime, Date endTime, Integer typeId, Integer groupId,
			Integer cityId, Integer supplierId, Boolean enable, int pageNo, int pageSize);

	public Product findById(Integer id);

	public Product newProduct(Product bean);

	public Product updateProduct(Product bean);

	public Product updateByUpdater(Updater<Product> updater);

	public Product deleteById(Integer id);

	public Product[] deleteByIds(Integer[] ids);

	public Product[] enableByIds(Integer[] ids, Boolean enable);

}
